package com.hifar.demo3.pojo;

import java.util.ArrayList;
import java.util.List;

public class TableRow {
    private String id;
    private List<TableCell> cells;
    
    // 构造函数
    public TableRow() {
        this.cells = new ArrayList<>();
    }
    
    // getters 和 setters
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    public List<TableCell> getCells() {
        return cells;
    }
    
    public void setCells(List<TableCell> cells) {
        this.cells = cells;
    }
    
    public void addCell(TableCell cell) {
        this.cells.add(cell);
    }
    
    @Override
    public String toString() {
        return "TableRow{" +
               "id='" + id + '\'' +
               ", cells=" + cells +
               '}';
    }
}

